package demo06;

import java.util.Scanner;

public class Hecha {
    public static void main(String[] args){
        int he;
        int  cha;
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入第一个整数");
        int a = sc.nextInt();
        System.out.println("请输入第二个整数");
        int b = sc.nextInt();
        he = a+b;
        cha = a-b;
        System.out.println("他们的和为"+he);
        System.out.println("他们的差为"+cha);
    }

}

